//
//  headerCollectionViewCell.m
//  HuiWenMovie
//
//  Created by niceDay on 15/7/27.
//  Copyright (c) 2015年 computer. All rights reserved.
//

#import "headerCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@implementation headerCollectionViewCell

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self _createSubviews];
    }
    return self;
}

- (void)_createSubviews{
    _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
    
    _imageView.layer.borderWidth = 0.5;
    _imageView.layer.borderColor = [UIColor whiteColor].CGColor;
    _imageView.layer.cornerRadius = 2;
    _imageView.layer.masksToBounds = YES;
    [self.contentView addSubview:_imageView];

    
}

- (void)setUrlStr:(NSString *)urlStr{
    _urlStr = urlStr;
    [self setNeedsLayout];
}
- (void)layoutSubviews{
    
    [super layoutSubviews];
    [_imageView sd_setImageWithURL:[NSURL URLWithString:_urlStr]];
    
    
    
    
}
@end
